<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
		//最大值
		
		var a = [2, 8, 21, 74, 28,99], x, max = a[0];
		for (x in a) {
		    if (a[x] > max) {
		        max = a[x];
		    }
		}
		document.write(a[x]);
		</script>
	</body>
</html>
